<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let a = [1, 3, 5, 7, 9]

        a.pop()//基于shift，删除末尾一项

        a.splice(a.length - 1, 1)//基于splice末尾删除一项

        a.length--//基于原生js,让数组长度干掉一位，默认干掉一位就是最后一位

    </script>
</body>

</html>